home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Tools & Apps / Intriguing Inits⁄cdevs⁄DAs / Lock Disk 1.0 / Lock Disk Documentation next >
Encoding:
Text File  |  1990-09-13  |  2.0 KB  |  34 lines  |  [ttro/ttxt]

  1. Lock Disk 1.0
  2. Brian Bechtel
  3.  
  4. Lock Disk is a CDev (control panel device) that changes your system disk (the one from which you boot your Macintosh) to read-only status. This can be handy in many ways:
  5.  
  6. •    CD-ROM discs are read-only.  You can test such things as Hypercard stacks to make sure that they run on read-only media. 
  7.  
  8. •    You can’t get a virus infection on a read-only disk.
  9.  
  10. •    Kids can’t (logically) destroy your hard disk.  No promises on physical efforts...
  11.  
  12. •    Trade shows.
  13.  
  14. Lock Disk cheats and goes behind the Finder’s back.  Use it with a certain sense of caution.  Poorly written programs get very upset if they are run on a read-only disk.   They can crash.
  15.  
  16. When you are booting your system, Lock Disk looks for a file named
  17.      file used by Lock Disk cdev/init
  18. in the System Folder.  If this file exists, your system disk is locked.  If the file doesn’t exist, nothing happens.  
  19.  
  20. To change the behavior,  open up the control panel and choose Lock Disk.  If you select “Lock”, the file mentioned above is created, and your system disk is locked.  If you select “Unlock”, the file is deleted and the system disk is unlocked.  This happens immediately;  you don’t have to reboot to have it take effect.
  21.  
  22. Technoweenie explanation of what’s going on:  Lock Disk sets the vcbAtrb flag that indicates that the disk in question is hardware locked.    Why don’t we allow you to lock & unlock other volumes?  Because the INIT can’t handle it;  at INIT time, only the system disk has been mounted, so it’s the only disk we can see.
  23.  
  24. The Finder may not notice that the status of the disk has changed until you do something like a “Get Info” on the disk. 
  25.  
  26. Questions, comments, etc. should be directed electronically to:
  27.   blob@apple.com   on Internet. (preferred)
  28.   BECHTEL1            on AppleLink. 
  29.  
  30. Don’t call me, I’ll call you.  This is not an Apple product, and Apple doesn’t know or care about this program.  Leave them out of this.
  31.  
  32.  
  33. In the future (not implemented yet):  support disks other than the system disk, even though the lock will only be in effect until you reboot.
  34.